#include<cstdio>
#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
using namespace std;
vector<int> mull(vector<int>n1,vector<int>n2)
{
    //确定返回容器
    vector<int>c;
    //确定进位变量
    int t = 0;
    
    int i = 0;
    for(i = 0;i < n1.size() || i < n2.size();i++)
    {
        int tem = 1;
        if(i < n1.size())
        {
           tem *= n1[i]; 
        }
        if(i < n2.size())
        {
            tem *= n2[i];
        }
        t = tem + t;
        //进行放置
        c.push_back(t % 10);
        t /= 10;
    }
    return c;
}
int main()
{
    //创建接收容器
    vector<int>a;
    vector<int>b;
    //开始输入
    string a1;
    string b1;
    cin >> a1 >> b1;
    int i = 0;
    for(i = a1.size() - 1;i >= 0;i--)
    {
        a.push_back(a1[i] - '0');
    }
    for(i = b1.size()-1;i >= 0;i--)
    {
        b.push_back(b1[i] - '0');
    }
    vector<int>c = mull(a,b);
    for(i = c.size() - 1;i >= 0;i--)
    {
        cout << c[i];
    }
    return 0;
}